<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>中雍后台</title>

<link href="/Q170713/0905/zhongyong/zhongyong/Public/admin/css/bootstrap.min.css" rel="stylesheet">
<link href="/Q170713/0905/zhongyong/zhongyong/Public/admin/css/datepicker3.css" rel="stylesheet">
<link href="/Q170713/0905/zhongyong/zhongyong/Public/admin/css/styles.css" rel="stylesheet">

<!--[if lt IE 9]>
<script src="/Q170713/0905/zhongyong/zhongyong/Public/admin/js/html5shiv.js"></script>
<script src="/Q170713/0905/zhongyong/zhongyong/Public/admin/js/respond.min.js"></script>
<![endif]-->

</head>

<body>
	<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
		<div class="container-fluid">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#sidebar-collapse">
					<span class="sr-only">Toggle navigation</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="#"><span>中雍111</span>装饰</a>
				<ul class="user-menu">
					<li class="dropdown pull-right">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-user"></span> <?php echo $_COOKIE['username'];?> <span class="caret"></span></a>
						<ul class="dropdown-menu" role="menu">
							<li><a href="#"><span class="glyphicon glyphicon-user"></span> Profile</a></li>
							<li><a href="#"><span class="glyphicon glyphicon-cog"></span> Settings</a></li>
							<li><a href="#"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li>
						</ul>
					</li>
				</ul>
			</div>
		</div><!-- /.container-fluid -->
	</nav>
		
	<div id="sidebar-collapse" class="col-sm-3 col-lg-2sidebar">
		<form role="search"> 
			<div class="form-group">
				<input type="text" class="form-control" placeholder="Search">
			</div>
		</form>
		<ul class="nav menu">
			<li class="active"><a href="<?php echo U('bannerSet/index');?>"><span class="glyphicon glyphicon-picture"></span> banner设置</a></li>
			<li><a href="<?php echo U('peopleManage/index');?>"><span class="glyphicon glyphicon-user"></span> 人员管理</a></li>
			<li><a href="<?php echo U('caseManage/index');?>"><span class="glyphicon glyphicon-th"></span> 优秀案例管理</a></li>
			<li><a href="<?php echo U('projectManage/index');?>"><span class="glyphicon glyphicon-list"></span> 项目管理</a></li>
			<li><a href="<?php echo U('newsManage/index');?>"><span class="glyphicon glyphicon-camera"></span> 新闻管理</a></li>
			<li><a href="<?php echo U('leaveWordManage/index');?>"><span class="glyphicon glyphicon-pencil"></span> 留言管理</a></li>
			<li><a href="<?php echo U('discountsManage/index');?>"><span class="glyphicon glyphicon-usd"></span> 优惠管理</a></li>
			<li><a href="<?php echo U('specialManage/index');?>"><span class="glyphicon glyphicon-thumbs-up"></span> 专题管理</a></li>
		</ul>
	</div><!--/.sidebar-->
		
	<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main">			
		<div class="row">
			<ol class="breadcrumb">
				<li><a href="#"><span class="glyphicon glyphicon-home"></span></a></li>
				<li class="active">banner设置</li>
			</ol>
			<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>中雍后台登录</title>

<link href="/Q170713/0905/zhongyong/zhongyong/Public/admin/css/bootstrap.min.css" rel="stylesheet">
<link href="/Q170713/0905/zhongyong/zhongyong/Public/admin/css/datepicker3.css" rel="stylesheet">
<link href="/Q170713/0905/zhongyong/zhongyong/Public/admin/css/styles.css" rel="stylesheet">

<!--[if lt IE 9]>
<script src="/Q170713/0905/zhongyong/zhongyong/Public/admin/js/html5shiv.js"></script>
<script src="/Q170713/0905/zhongyong/zhongyong/Public/admin/js/respond.min.js"></script>
<![endif]-->

</head>

<body>
	
	<div class="row">
		<div class="col-xs-10 col-xs-offset-1 col-sm-8 col-sm-offset-2 col-md-4 col-md-offset-4">
			<div class="login-panel panel panel-default">
				<div class="panel-heading">登录</div>
				<div class="panel-body">
					<form role="form" id="login_form" action="<?php echo U('Login/login');?>" method="post">
						<fieldset>
							<div class="form-group">
								<input class="form-control" placeholder="登录用户名" name="name" type="text" autofocus="">
							</div>
							<div class="form-group">
								<input class="form-control" placeholder="密码" name="password" type="password" value="">
							</div>
							<div class="checkbox">
								<label>
									<input name="remember" type="checkbox" value="Remember Me">记住密码
								</label>
							</div>
							<button class="btn btn-primary">登录</button>
						</fieldset>
					</form>
				</div>
			</div>
		</div><!-- /.col-->
	</div><!-- /.row -->	
	
		

	<script src="/Q170713/0905/zhongyong/zhongyong/Public/admin/js/jquery-1.11.1.min.js"></script>
	<script src="/Q170713/0905/zhongyong/zhongyong/Public/admin/js/jquery.validate.js"></script>
	<script src="/Q170713/0905/zhongyong/zhongyong/Public/admin/js/bootstrap.min.js"></script>
	<script src="/Q170713/0905/zhongyong/zhongyong/Public/admin/js/chart.min.js"></script>
	<script src="/Q170713/0905/zhongyong/zhongyong/Public/admin/js/chart-data.js"></script>
	<script src="/Q170713/0905/zhongyong/zhongyong/Public/admin/js/easypiechart.js"></script>
	<script src="/Q170713/0905/zhongyong/zhongyong/Public/admin/js/easypiechart-data.js"></script>
	<script src="/Q170713/0905/zhongyong/zhongyong/Public/admin/js/bootstrap-datepicker.js"></script>
	<script>
	$(function(){
		$("#login_form").validate({
			rules: {
		      name: {
		      	required:true
		      },
		      password:{
		      	required:true
		      }
		    },
		    messages: {
		      name: {
		      	required:"请输入您的账号"
		      },
		      password:{
		      	required:"请输入您的密码"	
		      }
		    },
		    // 当验证失败的时候会做的事情
			errorPlacement: function(error, element) { 
				// console.log(error);
				// console.log(element);
				element.parent().append(error);
				element.parents(".form-group").addClass("has-error");
			},success: function(element) {
				// alert(element.html());
				element.parents(".form-group").removeClass("has-error");
				element.remove();
			}
		});
	})
	</script>
	<script>
		!function ($) {
			$(document).on("click","ul.nav li.parent > a > span.icon", function(){		  
				$(this).find('em:first').toggleClass("glyphicon-minus");	  
			}); 
			$(".sidebar span.icon").find('em:first').addClass("glyphicon-plus");
		}(window.jQuery);

		$(window).on('resize', function () {
		  if ($(window).width() > 768) $('#sidebar-collapse').collapse('show')
		})
		$(window).on('resize', function () {
		  if ($(window).width() <= 767) $('#sidebar-collapse').collapse('hide')
		})
	</script>	
</body>

</html>

		</div><!--/.row-->
		<!-- banner设置开始 -->
		<!-- banner设置结束 -->
		
	</div>	<!--/.main-->

	<script src="/Q170713/0905/zhongyong/zhongyong/Public/admin/js/jquery-1.11.1.min.js"></script>
	<script src="/Q170713/0905/zhongyong/zhongyong/Public/admin/js/bootstrap.min.js"></script>
	<script src="/Q170713/0905/zhongyong/zhongyong/Public/admin/js/chart.min.js"></script>
	<script src="/Q170713/0905/zhongyong/zhongyong/Public/admin/js/chart-data.js"></script>
	<script src="/Q170713/0905/zhongyong/zhongyong/Public/admin/js/easypiechart.js"></script>
	<script src="/Q170713/0905/zhongyong/zhongyong/Public/admin/js/easypiechart-data.js"></script>
	<script src="/Q170713/0905/zhongyong/zhongyong/Public/admin/js/bootstrap-datepicker.js"></script>
	<script>
		$('#calendar').datepicker({
		});

		!function ($) {
		    $(document).on("click","ul.nav li.parent > a > span.icon", function(){          
		        $(this).find('em:first').toggleClass("glyphicon-minus");      
		    }); 
		    $(".sidebar span.icon").find('em:first').addClass("glyphicon-plus");
		}(window.jQuery);

		$(window).on('resize', function () {
		  if ($(window).width() > 768) $('#sidebar-collapse').collapse('show')
		})
		$(window).on('resize', function () {
		  if ($(window).width() <= 767) $('#sidebar-collapse').collapse('hide')
		})
	</script>	
</body>

</html>